package jiwei;

import jiwei.controller.HelloController;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import java.net.UnknownHostException;

@Slf4j
@SpringBootApplication
public class AaTest {

    public static void main(String[] args) throws UnknownHostException {
        ConfigurableApplicationContext application = SpringApplication.run(Application.class, args);

        HelloController helloController = application.getBean(HelloController.class);
        String r = helloController.hello();
        log.info(r);

        System.exit(0);
    }

}
